/***************** Modification History ***********************************
   @doc
   @module pcr600.h - Prototypes for cr600.c |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/pcr600.h $ 
 * 
 * 3     3/05/00 11:13p Jim_b4
 * Code Security scheme added to each significant source file
 * 
 * 2     12/22/99 1:38p Page_k1
 * Make independent module
 * 
 * 1     12/21/99 5:21p Page_k1
 * 
 * 2     12/17/99 3:24p Page_k1
 * Add #ifdef CR600_DEFINED
 * 
 * 1     7/19/99 5:30p Jim_b4
 * 
 * 1     7/19/99 4:06p Jim_b4
 * 
 * 2     7/12/99 2:25p Jim_b4
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifdef CR600_DEFINED
#ifndef PCR600_H
#define PCR600_H

int inFullCkrdrDwnldOperation(TRANSACTION_OBJECT *pobTran);
int inPartCkrdrDwnldOperation(TRANSACTION_OBJECT *pobTran);
int inSetFullDwnldComm(TRANSACTION_OBJECT *pobTran, int inCom1Baud, int inCom1Format);
int inCr600QueryStatus (int inCkrdrHandle);
int inCr600SoftwareReset (int inCkrdrHandle);
int inCr600PassThru (int inCkrdrHandle, int inPassThru);
int inCr600EnterFormat (int inCkrdrHandle, int inFormat);
int inCr600Acknowledgment (int inCkrdrHandle, int inAcknowledge);
int inCr600Configuration (int inCkrdrHandle, int inConfiguration);
int inCr600ManualConfig (int inCkrdrHandle);
int inCr600BaudRate (int inCkrdrHandle, int inComPort, int inBaudRate);
int inCr600Handshake (int inCkrdrHandle, int inComPort, int inHandshakeMethod);
int inCr600SetFormat (int inCkrdrHandle, int inComPort, int inFormat);
int inCr600CharLen (int inCkrdrHandle, int inComPort, char chCharLen);
int inCr600Parity (int inCkrdrHandle, int inComPort, char chParity);
void vdCr600FramePacket(CKRDR_STRUCT *pCkrdrStruct);
int inCr600SendPacket(int inCkrdrHandle, CKRDR_STRUCT  *pCkrdrStruct);
int inCr600GetResponse(int inCkrdrHandle, CKRDR_STRUCT  *pCkrdrStruct);



int inAddCR600Functions(void);
int inOpenCR600(VS_BOOL fDisplay, CCT_REC *psrCCTRecLocal);
int inInitCR600 (VS_BOOL fDisplay, CCT_REC *psrCCTRecLocal);
int inGetCR600Handle (void);
int inCloseCR600(void);
int CR600_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);



#endif
#endif  // CR600_DEFINED

